.file-explorer-container {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: #252526;
  /* background-color: #fff; */
  color: #d4d4d4;
  height: 100vh;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #454545;
  user-select: none;
}

.explorer-header {
  padding: 15px;
  border-bottom: 1px solid #454545;
}

.header-title {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.header-title .icon {
  margin-right: 8px;
  font-size: 16px;
}

.explorer-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #cccccc;
}

.path-display {
  display: flex;
  align-items: center;
  background-color: #2d2d2d;
  border-radius: 4px;
  padding: 8px 12px;
  margin-bottom: 15px;
  font-size: 13px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.path-icon {
  margin-right: 8px;
  color: #4ec9b0;
}

.path-text {
  overflow: hidden;
  text-overflow: ellipsis;
}

.actions {
  margin-bottom: 15px;
}

.open-folder-btn {
  background-color: #0e639c;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.2s;
  width: 100%;
}

.open-folder-btn:hover {
  background-color: #1177bb;
}

.search-box {
  position: relative;
  margin-top: 10px;
}

.search-box input {
  width: 100%;
  padding: 8px 12px 8px 35px;
  background-color: #3c3c3c;
  border: 1px solid #0078d4;
  border-radius: 4px;
  color: #d4d4d4;
  outline: none;
  font-size: 13px;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.search-box input:focus {
  border-color: #0078d4;
  box-shadow: 0 0 0 1px #0078d4;
}

.search-box .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #888;
}

.file-tree {
  flex: 1;
  overflow-y: auto;
  padding: 10px 5px;
}

.tree-node {
  padding: 3px 0;
}

.folder,
.file {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s;
  position: relative;
  border-radius: 3px;
}

.folder:hover,
.file:hover {
  background-color: #2a2d2e;
}

.file.selected {
  background-color: #094771;
}

.icon {
  margin-right: 8px;
  font-size: 14px;
  width: 16px;
  text-align: center;
}

.name {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.children {
  margin-left: 20px;
  border-left: 1px dashed #454545;
}

.no-results {
  padding: 30px 15px;
  color: #888;
  font-size: 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.no-results p {
  margin-bottom: 15px;
}

.loading-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border-top-color: #0078d4;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.error-message {
  padding: 20px;
  background-color: #3a1d1d;
  border-radius: 4px;
  margin: 15px;
  display: flex;
  align-items: center;
}

.error-icon {
  font-size: 20px;
  margin-right: 10px;
  color: #f48771;
}

.selected-file-info {
  padding: 15px;
  border-top: 1px solid #454545;
  font-size: 13px;
}

.selected-file-info h4 {
  margin: 0 0 8px 0;
  color: #9cdcfe;
}

.file-path {
  font-size: 12px;
  color: #888;
  margin-top: 5px;
  word-break: break-all;
}

.file-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #888;
  margin-top: 8px;
}

/* 拖拽样式 */
.drag-over {
  background-color: #37373d;
  outline: 1px solid #0078d4;
}

/* 滚动条样式 */
.file-tree::-webkit-scrollbar {
  width: 10px;
}

.file-tree::-webkit-scrollbar-track {
  background: #2d2d2d;
}

.file-tree::-webkit-scrollbar-thumb {
  background: #5a5a5a;
  border-radius: 5px;
}

.file-tree::-webkit-scrollbar-thumb:hover {
  background: #707070;
}

/* 动画效果 */
.folder,
.file {
  transition: all 0.2s ease;
}

.tree-node {
  transition: opacity 0.2s;
}

/* 添加上下文菜单样式 */
.context-menu {
  background-color: #3c3c3c;
  border: 1px solid #454545;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  min-width: 180px;
  overflow: hidden;
}

.context-menu ul {
  list-style: none;
  margin: 0;
  padding: 5px 0;
}

.context-menu-item {
  padding: 6px 15px;
  font-size: 13px;
  color: #d4d4d4;
  cursor: pointer;
  transition: background-color 0.2s;
}

.context-menu-item:hover {
  background-color: #094771;
}

.context-menu-item:active {
  background-color: #0066b3;
}

.context-menu li[data-separator] {
  height: 1px;
  background-color: #454545;
  margin: 5px 0;
}


/* 重命名输入框 */
.rename-input {
  background-color: #3c3c3c;
  border: 1px solid #0078d4;
  border-radius: 3px;
  color: #d4d4d4;
  padding: 2px 5px;
  font-size: 13px;
  width: calc(100% - 25px);
  outline: none;
}

/* 剪贴板指示器 */
.clipboard-indicator {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #094771;
  padding: 8px 15px;
  border-radius: 4px;
  font-size: 13px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
}

.clipboard-icon {
  margin-right: 8px;
}